package com.example.demo.dao;

import com.example.demo.entity.Customer;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface CustomerMapper {
    @Insert("insert into t_customer(id,customer_id,customer_name) values(#{id},#{customerId},#{customerName})")
    public void insertCustomer(Customer customer);


    @Select("select * from t_customer where customer_id = #{customerId}")
    public Customer queryCustomer(Long id);
}
